package flow.js;

import flow.elemainspace.ThrowNewGoods;
import flow.js.GoodsActivity.NewGoodsListener;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageButton;

public class LetterActivity extends Activity{
	private Button btn_relatedletter = null;
	private Button btn_concernletter = null;
	private Button btn_stockletter = null;
	private ImageButton throwNewletter=null;
	
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.letteractivity);
        btn_relatedletter = (Button)findViewById(R.letteractivity.button1);
        btn_concernletter = (Button)findViewById(R.letteractivity.button2);
        btn_stockletter = (Button)findViewById(R.letteractivity.button3);
        throwNewletter= (ImageButton)findViewById(R.letteractivity.ibtn_throwNewLetter);
        throwNewletter.setOnClickListener(new NewLetterListener());
	}
	
	class NewLetterListener implements OnClickListener{

		public void onClick(View v) {
			// TODO Auto-generated method stub
			Intent intent = new Intent();
			
			intent.setClass(LetterActivity.this, ThrowNewGoods.class);
			
			LetterActivity.this.startActivity(intent);
		}
    	
    }

}
